﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Com.Charence.PassManager.BusinessEntities;
using Com.Charence.PassManager.BusinessEntities.Common;
using Com.Charence.PassManager.DataComponents;

namespace Com.Charence.PassManager.BusinessComponents
{
    public class CommonBC
    {
        private readonly CommonDC _dc = new CommonDC();

        public User GetUserBasicInfo(int userId)
        {
            var userInfo = _dc.GetUserBasicInfo(userId);
            userInfo.Password = string.Empty;
            return userInfo;
        }

        public OptionSet GetAccOwnerSource(string query)
        {
            var options = _dc.GetAccOwnerSource(query);

            var result = new OptionSet
            {
                Options = options
            };
            
            return result;
        }
    }
}
